package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.ReportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;

@RestController
@RequestMapping("/report")
public class ReportController {

    @Reference(version = "1.0.0")
    private ReportService reportService;

    @GetMapping("/getMemberReport")
    public Result getMemberReport() {
        return reportService.getMemberReport();
    }
    @GetMapping("/getSetMealReport")
    public Result getSetMealReport() {
        return reportService.getSetMealReport();
    }

}
